package ControlLayer;
import  ModelLayer.*;
import java.util.*;

/**
 * Write a description of class DVDregisterCtr here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class DVDregisterCtr
{
    // instance variables - replace the example below with your own
   
    private DVDregister dvdRegister;
    
    public DVDregisterCtr()
    {
        dvdRegister=DVDregister.getInstance();
    }

    public int readNumberOfCopies(int id)
    {
        return dvdRegister.readNumberOfCopies(id);
    }
    
    public boolean checkSerialNumber(int id,int serialNumber)
    {
        return dvdRegister.checkSerialNumber(id,serialNumber);
    }
    
    public boolean checkID(int id)
    {
        return dvdRegister.checkID(id);
    }
    
    public int readSize()
    {
        return dvdRegister.readSize();
    }
    
    public void addDVD(int id, String title, String artist, String publicationDate)
    {
        dvdRegister.addDVD(id, title, artist, publicationDate);
    }
    
    public void printDVDs()
    {
        dvdRegister.printDVDs();
    }
    
    public void printDVD(int id)
    {
        dvdRegister.printDVD(id);
    }
    
    public void removeDVD(int id)
    {
        dvdRegister.removeDVD(id);   
    }
    
     public void updateDVDID(int id,int newID)
    {
        dvdRegister.updateDVDID(id,newID);
    }
    
    public void updateDVDTitle(int id,String name)
    {
        dvdRegister.updateDVDTitle(id,name);
    }
    
    public void updateDVDArtist(int id,String artist)
    {
        dvdRegister.updateDVDArtist(id,artist);
    }
    
    public void updateDVDPublicationDate(int id,String publicationDate)
    {
        dvdRegister.updateDVDPublicationDate(id,publicationDate);
    }
    
    public void addCopy(int id, int serialNumber, String purchaseDate, int price)
    {
        dvdRegister.addCopy(id, serialNumber, purchaseDate, price);
    }
    
     public void removeCopy(int id, int serialNumber)
    {
        dvdRegister.removeCopy(id, serialNumber);
    }
    
    
}
